//
//  TabItem.swift
//  tabSwitch
//
//  Created by Apple on 2021/6/11.
//

import Foundation
import SwiftUI

struct TabItem: Identifiable {
    var id: UUID = UUID()
    var logo : Image
    var title: String
    var url: String
    var image: Image
    
    static let `default` = TabItem(logo:Image("qq"), title: "I‘m QQ - 每一天，乐在沟通", url: "https://im.qq.com", image: Image("bg"))
    static let `default1` = TabItem(logo:Image("baidu"), title: "百度百科..............", url: "https://www.baidu.com",image: Image("bg"))
    static let `default2` = TabItem(logo:Image("baidu"), title: "swift_百度搜索", url: "https://www.baidu.com/s?ie=utf-8&f=8&wd=swift",image: Image("bg"))
    static let `default3` = TabItem(logo:Image("baidu"), title: "百度百科2..............", url: "https://baike.baidu.com",image: Image("bg"))
    static let `default4` = TabItem(logo:Image("baidu"), title: "百度百科3..............", url: "https://baike.baidu.com",image: Image("bg"))
    static let `default5` = TabItem(logo:Image("baidu"), title: "百度百科4..............", url: "https://baike.baidu.com",image: Image("bg"))
    static let `default6` = TabItem(logo:Image("baidu"), title: "百度百科5..............", url: "https://baike.baidu.com",image: Image("bg"))

    
    init(logo:Image, title: String, url: String, image: Image) {
        self.logo = logo
        self.image = image
        self.title = title
        self.url = url
    }
}

